package com.yuda.campsite.service.impl;

import java.util.List;

import com.yuda.campsite.mapper.StudentInfoMapper;
import com.yuda.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import com.yuda.campsite.domain.StudentInfo;
import com.yuda.campsite.service.IStudentInfoService;
/*
import com.yuda.common.mapper.StudentInfoMapper;
import com.yuda.common.domain.StudentInfo;
import com.yuda.common.service.IStudentInfoService;
*/

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author wyn
 * @date 2021-09-27
 */
@Service
public class StudentInfoServiceImpl implements IStudentInfoService
{
    @Autowired
    private StudentInfoMapper studentInfoMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param uuid 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public StudentInfo selectStudentInfoById(String uuid)
    {
        return studentInfoMapper.selectStudentInfoById(uuid);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param studentInfo 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<StudentInfo> selectStudentInfoList(StudentInfo studentInfo)
    {
        return studentInfoMapper.selectStudentInfoList(studentInfo);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param studentInfo 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertStudentInfo(StudentInfo studentInfo)
    {
        studentInfo.setCreateTime(DateUtils.getNowDate());
        return studentInfoMapper.insertStudentInfo(studentInfo);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param studentInfo 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateStudentInfo(StudentInfo studentInfo)
    {
        studentInfo.setUpdateTime(DateUtils.getNowDate());
        return studentInfoMapper.updateStudentInfo(studentInfo);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param uuids 需要删除的【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteStudentInfoByIds(String[] uuids)
    {
        return studentInfoMapper.deleteStudentInfoByIds(uuids);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param uuid 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteStudentInfoById(String uuid)
    {
        return studentInfoMapper.deleteStudentInfoById(uuid);
    }

    @Override
    public String selectProId(String jiguanProvince) {
        return studentInfoMapper.selectProId(jiguanProvince);
    }

    @Override
    public String selectCityId(String jiguanCity) {
        return studentInfoMapper.selectCityId(jiguanCity);
    }

    @Override
    public String selectSchProId(String school) {
        return studentInfoMapper.selectSchProId(school);
    }

    @Override
    public String selectSchCityID(String school) {
        return studentInfoMapper.selectSchCityID(school);
    }

    @Override
    public String selectSchId(String school) {
        return studentInfoMapper.selectSchId(school);
    }

    @Override
    public int OrderIdCard(String idCard, String uuid) {
        return studentInfoMapper.OrderIdCard(idCard, uuid);
    }

    @Override
    public int OrderInfoIdCard(String idCard, String uuid) {
        return studentInfoMapper.OrderInfoIdCard(idCard, uuid);
    }

    @Override
    public int StudentAccount(String idCard, String uuid) {
        return studentInfoMapper.StudentAccount(idCard, uuid);
    }

    @Override
    public int StudentAccountPhone(String phone, String uuid) {
        return studentInfoMapper.StudentAccountPhone(phone, uuid);
    }

    @Override
    public int StudentAccountEmail(String eamil, String uuid) {
        return studentInfoMapper.StudentAccountEmail(eamil, uuid);
    }
}
